export const tableOptionDetailEdit = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      display:false,
      hide:true,
    },	  {
      "type": "input",
      "label": "主表关联ID",
      "prop": "refId",
      display:false,
      hide:true,
    },	  {
      "label": "票种",
      "prop": "ticketType",
      type: 'select',
      dicUrl: '/support/swpmticketcardtype/dict',
      props: {
        label: 'mainName',
        value: 'mainEnName'
      },
      cascaderItem: ["ticketTypeParam"],
      cell:true,
    },	  {
      "label": "车票名称",
      "prop": "ticketTypeParam",
      type: 'select',
      props: {
        label: 'subName',
        value: 'subEnName'
      },
      dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
      //dicFlag: false,
      component: 'ticket-name-select',
      params: {
        ticketAmountKey: 'ticketAmount',
        ticketCountKey: 'ticketCount'
      },
      cell:true,
    },
    // {
    //   "label": "车票种类",
    //   "prop": "ticketReturnType",
    //   type: 'select',
    //   dicUrl: '/admin/dict/type/TICKET_RETURN_TYPE',
    //   // cell: this.isHandleResultEditable,
    //   cell: true,
    //   // disabled: true,
    //   filterable: true,
    //   allowCreate: false,
    //   width: 110
    // },
    {
      "type": "input",
      "label": "号段",
      "prop": "numberInterval",
      cell:true,
    },	  {
      "type": "input",
      precision: 0,
      "label": "有效期",
      "prop": "cardNumber",
      cell:true,
    },	  {
      "type": "number",
      "label": "金额【元】",
      "prop": "ticketAmount",
	  precision: 2
    },	  {
      "type": "input",
      "label": "次数",
      "prop": "ticketCount"
    },	  {
      "type": "input",
      "label": "配送/入张数",
      "prop": "deliveryCount",
      cell:true,
    },	  {
      "type": "input",
      "label": "接收张数",
      "prop": "receiveCount"
    },	  {
      "type": "input",
      "label": "差异张数",
      "prop": "differenceCount"
    },	  {
      "type": "input",
      "label": "备注",
      "prop": "remark",
      cell:true,
    },	  {
      "type": "input",
      "label": "删除标志",
      "prop": "delFlag",
      hide:true,
    }  ]
}

export const tableOptionDetailAdd = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      display:false,
      hide:true,
    },	  {
      "type": "input",
      "label": "主表关联ID",
      "prop": "refId",
      display:false,
      hide:true,
    },	  {
      "label": "票种",
      "prop": "ticketType",
      type: 'select',
      dicUrl: '/support/swpmticketcardtype/dict',
      props: {
        label: 'mainName',
        value: 'mainEnName'
      },
      cascaderItem: ["ticketTypeParam"],
      cell:true,
    },	  {
      "label": "车票名称",
      "prop": "ticketTypeParam",
       type: 'select',
      props: {
        label: 'subName',
        value: 'subEnName'
      },
      dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
      //dicFlag: false,
      component: 'ticket-name-select',
      params: {
        ticketAmountKey: 'ticketAmount',
        ticketCountKey: 'ticketCount'
      },
      cell:true,
    },
    // {
    //   "label": "车票种类",
    //   "prop": "ticketReturnType",
    //   type: 'select',
    //   dicUrl: '/admin/dict/type/TICKET_RETURN_TYPE',
    //   // cell: this.isHandleResultEditable,
    //   cell: true,
    //   // disabled: true,
    //   filterable: true,
    //   allowCreate: false,
    //   width: 110
    // },
    {
      "type": "input",
      "label": "号段",
      "prop": "numberInterval",
      cell:true,
    },	  {
      "type": "input",
      precision: 0,
      "label": "有效期",
      "prop": "cardNumber",
      cell:true,
    },	  {
      "type": "number",
      "label": "金额【元】",
      "prop": "ticketAmount",
	  precision: 2
    },	  {
      "type": "input",
      "label": "次数",
      "prop": "ticketCount"
    },	  {
      "type": "input",
      "label": "配送/入张数",
      "prop": "deliveryCount",
      cell:true,
    },		  {
      "type": "input",
      "label": "备注",
      "prop": "remark",
      cell:true,
    },	  {
      "type": "input",
      "label": "删除标志",
      "prop": "delFlag",
      hide:true,
    }  ]
}

export const tableOptionDetailView = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  detail:true,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      display:false,
      hide:true,
    },	  {
      "type": "input",
      "label": "主表关联ID",
      "prop": "refId",
      display:false,
      hide:true,
    },	  {
      "label": "票种",
      "prop": "ticketType",
      type: 'select',
      dicUrl: '/support/swpmticketcardtype/dict',
      props: {
        label: 'mainName',
        value: 'mainEnName'
      },
      //cascaderItem: ["ticketTypeParam"],
    },	  {
      "label": "车票名称",
      "prop": "ticketTypeParam",
      type: 'select',
      props: {
        label: 'subName',
        value: 'subEnName'
      },
      dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
      //dicFlag: false,
      //component: 'ticket-name-select',
      params: {
        ticketAmountKey: 'ticketAmount',
        ticketCountKey: 'ticketCount'
      },
      disabled:true,
      fit:true,
    },
    // {
    //   "label": "车票种类",
    //   "prop": "ticketReturnType",
    //   type: 'select',
    //   dicUrl: '/admin/dict/type/TICKET_RETURN_TYPE',
    //   // cell: this.isHandleResultEditable,
    //   cell: true,
    //   // disabled: true,
    //   filterable: true,
    //   allowCreate: false,
    //   width: 110
    // },
    {
      "type": "input",
      "label": "号段",
      "prop": "numberInterval"
    },	  {
      "type": "input",
      precision: 0,
      "label": "有效期",
      "prop": "cardNumber"
    },	  {
      "type": "number",
      "label": "金额【元】",
      "prop": "ticketAmount",
	  precision: 2
    },	  {
      "type": "input",
      "label": "次数",
      "prop": "ticketCount"
    },	  {
      "type": "input",
      "label": "配送/入张数",
      "prop": "deliveryCount"
    },	  {
      "type": "input",
      "label": "接收张数",
      "prop": "receiveCount"
    },	  {
      "type": "input",
      "label": "差异张数",
      "prop": "differenceCount"
    },	  {
      "type": "input",
      "label": "备注",
      "prop": "remark",
    },	  {
      "type": "input",
      "label": "删除标志",
      "prop": "delFlag",
      hide:true,
    }  ]
}
